//
//  MusicRecommendHeadView.m
//  XMLY
//
//  Created by lanou on 15/11/4.
//  Copyright © 2015年 曾杰. All rights reserved.
//

#import "MusicRecommendHeadView.h"
#define screen_width [UIScreen mainScreen].bounds.size.width
#define screen_height [UIScreen mainScreen].bounds.size.height

@implementation MusicRecommendHeadView


-(instancetype)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if (self) {
      
        
        _pictureView = [[UIImageView alloc]initWithFrame:CGRectMake(20, screen_height/3, 50, 50)];
        _pictureView.layer.masksToBounds = YES;
        _pictureView.layer.cornerRadius = 25;
        _pictureView.image = [UIImage imageNamed:@"jiangbei"];
        [self addSubview:_pictureView];
        
        _topLabel = [[UILabel alloc]initWithFrame:CGRectMake(80, screen_height/3+5, screen_width-140, 20)];
        _topLabel.alpha = 0.6;
        _topLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:_topLabel];
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(80, screen_height/3+30, screen_width-140, 20)];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        _titleLabel.alpha = 0.6;
        [self addSubview:_titleLabel];
        
        _nextButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _nextButton.frame = CGRectMake(screen_width-35, screen_height/3+20, 20, 20) ;
        [_nextButton setBackgroundImage:[UIImage imageNamed:@"xiayige"] forState:(UIControlStateNormal)];
        [self addSubview:_nextButton];
    }
    return self;
}


@end
